import * as user from './controller'
import { ensureUser } from '../../middleware/validators'

export const baseUrl = '/user'

export default [{
    method: 'POST',
    route: '/',
    handlers: [user.getUsers]
}, {
    method: 'POST',
    route: '/updateUser/',
    handlers: [user.getUser, user.updateUser]
}, {
    method: 'POST',
    route: '/deleteUser/',
    handlers: [user.getUser, user.deleteUser]
}, {
    method: 'POST',
    route: '/find/',
    handlers: [user.getUser]
}, {
    method: 'POST',
    route: '/allUsers/',
    handlers: [user.getAllUsers]
}, ]